package com.ng.common.util;

import java.util.HashMap;
import java.util.Map;
import com.hikvision.artemis.sdk.ArtemisHttpUtil;
import com.hikvision.artemis.sdk.config.ArtemisConfig;
public class IscUtil {
	
	
	public static String getData(String host,String appKey,String appSecret,String camsApi,String url,String jsonData) throws Exception {
		Map<String, String> path = new HashMap<String, String>(2) {
			private static final long serialVersionUID = 1L;
			{
				put("https://", String.format("%s%s", camsApi,url));
			}
		};
		ArtemisConfig config=new ArtemisConfig();
		config.setAppKey(appKey);
		config.setAppSecret(appSecret);
		config.setHost(host);
		return ArtemisHttpUtil.doPostStringArtemis(config, path,jsonData, null, null, "application/json");
	}
	
	
}
